package com.esyoga.yoyoga.pojo;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class TTrainerAgreementExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TTrainerAgreementExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTaIdIsNull() {
            addCriterion("ta_id is null");
            return (Criteria) this;
        }

        public Criteria andTaIdIsNotNull() {
            addCriterion("ta_id is not null");
            return (Criteria) this;
        }

        public Criteria andTaIdEqualTo(Integer value) {
            addCriterion("ta_id =", value, "taId");
            return (Criteria) this;
        }

        public Criteria andTaIdNotEqualTo(Integer value) {
            addCriterion("ta_id <>", value, "taId");
            return (Criteria) this;
        }

        public Criteria andTaIdGreaterThan(Integer value) {
            addCriterion("ta_id >", value, "taId");
            return (Criteria) this;
        }

        public Criteria andTaIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ta_id >=", value, "taId");
            return (Criteria) this;
        }

        public Criteria andTaIdLessThan(Integer value) {
            addCriterion("ta_id <", value, "taId");
            return (Criteria) this;
        }

        public Criteria andTaIdLessThanOrEqualTo(Integer value) {
            addCriterion("ta_id <=", value, "taId");
            return (Criteria) this;
        }

        public Criteria andTaIdIn(List<Integer> values) {
            addCriterion("ta_id in", values, "taId");
            return (Criteria) this;
        }

        public Criteria andTaIdNotIn(List<Integer> values) {
            addCriterion("ta_id not in", values, "taId");
            return (Criteria) this;
        }

        public Criteria andTaIdBetween(Integer value1, Integer value2) {
            addCriterion("ta_id between", value1, value2, "taId");
            return (Criteria) this;
        }

        public Criteria andTaIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ta_id not between", value1, value2, "taId");
            return (Criteria) this;
        }

        public Criteria andTaTIdIsNull() {
            addCriterion("ta_t_id is null");
            return (Criteria) this;
        }

        public Criteria andTaTIdIsNotNull() {
            addCriterion("ta_t_id is not null");
            return (Criteria) this;
        }

        public Criteria andTaTIdEqualTo(Integer value) {
            addCriterion("ta_t_id =", value, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaTIdNotEqualTo(Integer value) {
            addCriterion("ta_t_id <>", value, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaTIdGreaterThan(Integer value) {
            addCriterion("ta_t_id >", value, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaTIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ta_t_id >=", value, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaTIdLessThan(Integer value) {
            addCriterion("ta_t_id <", value, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaTIdLessThanOrEqualTo(Integer value) {
            addCriterion("ta_t_id <=", value, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaTIdIn(List<Integer> values) {
            addCriterion("ta_t_id in", values, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaTIdNotIn(List<Integer> values) {
            addCriterion("ta_t_id not in", values, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaTIdBetween(Integer value1, Integer value2) {
            addCriterion("ta_t_id between", value1, value2, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaTIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ta_t_id not between", value1, value2, "taTId");
            return (Criteria) this;
        }

        public Criteria andTaGIdIsNull() {
            addCriterion("ta_g_id is null");
            return (Criteria) this;
        }

        public Criteria andTaGIdIsNotNull() {
            addCriterion("ta_g_id is not null");
            return (Criteria) this;
        }

        public Criteria andTaGIdEqualTo(Integer value) {
            addCriterion("ta_g_id =", value, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGIdNotEqualTo(Integer value) {
            addCriterion("ta_g_id <>", value, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGIdGreaterThan(Integer value) {
            addCriterion("ta_g_id >", value, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ta_g_id >=", value, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGIdLessThan(Integer value) {
            addCriterion("ta_g_id <", value, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGIdLessThanOrEqualTo(Integer value) {
            addCriterion("ta_g_id <=", value, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGIdIn(List<Integer> values) {
            addCriterion("ta_g_id in", values, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGIdNotIn(List<Integer> values) {
            addCriterion("ta_g_id not in", values, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGIdBetween(Integer value1, Integer value2) {
            addCriterion("ta_g_id between", value1, value2, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ta_g_id not between", value1, value2, "taGId");
            return (Criteria) this;
        }

        public Criteria andTaGymratioIsNull() {
            addCriterion("ta_gymratio is null");
            return (Criteria) this;
        }

        public Criteria andTaGymratioIsNotNull() {
            addCriterion("ta_gymratio is not null");
            return (Criteria) this;
        }

        public Criteria andTaGymratioEqualTo(Double value) {
            addCriterion("ta_gymratio =", value, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaGymratioNotEqualTo(Double value) {
            addCriterion("ta_gymratio <>", value, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaGymratioGreaterThan(Double value) {
            addCriterion("ta_gymratio >", value, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaGymratioGreaterThanOrEqualTo(Double value) {
            addCriterion("ta_gymratio >=", value, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaGymratioLessThan(Double value) {
            addCriterion("ta_gymratio <", value, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaGymratioLessThanOrEqualTo(Double value) {
            addCriterion("ta_gymratio <=", value, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaGymratioIn(List<Double> values) {
            addCriterion("ta_gymratio in", values, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaGymratioNotIn(List<Double> values) {
            addCriterion("ta_gymratio not in", values, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaGymratioBetween(Double value1, Double value2) {
            addCriterion("ta_gymratio between", value1, value2, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaGymratioNotBetween(Double value1, Double value2) {
            addCriterion("ta_gymratio not between", value1, value2, "taGymratio");
            return (Criteria) this;
        }

        public Criteria andTaStateIsNull() {
            addCriterion("ta_state is null");
            return (Criteria) this;
        }

        public Criteria andTaStateIsNotNull() {
            addCriterion("ta_state is not null");
            return (Criteria) this;
        }

        public Criteria andTaStateEqualTo(Integer value) {
            addCriterion("ta_state =", value, "taState");
            return (Criteria) this;
        }

        public Criteria andTaStateNotEqualTo(Integer value) {
            addCriterion("ta_state <>", value, "taState");
            return (Criteria) this;
        }

        public Criteria andTaStateGreaterThan(Integer value) {
            addCriterion("ta_state >", value, "taState");
            return (Criteria) this;
        }

        public Criteria andTaStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("ta_state >=", value, "taState");
            return (Criteria) this;
        }

        public Criteria andTaStateLessThan(Integer value) {
            addCriterion("ta_state <", value, "taState");
            return (Criteria) this;
        }

        public Criteria andTaStateLessThanOrEqualTo(Integer value) {
            addCriterion("ta_state <=", value, "taState");
            return (Criteria) this;
        }

        public Criteria andTaStateIn(List<Integer> values) {
            addCriterion("ta_state in", values, "taState");
            return (Criteria) this;
        }

        public Criteria andTaStateNotIn(List<Integer> values) {
            addCriterion("ta_state not in", values, "taState");
            return (Criteria) this;
        }

        public Criteria andTaStateBetween(Integer value1, Integer value2) {
            addCriterion("ta_state between", value1, value2, "taState");
            return (Criteria) this;
        }

        public Criteria andTaStateNotBetween(Integer value1, Integer value2) {
            addCriterion("ta_state not between", value1, value2, "taState");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeIsNull() {
            addCriterion("ta_createtime is null");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeIsNotNull() {
            addCriterion("ta_createtime is not null");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeEqualTo(String value) {
            addCriterion("ta_createtime =", value, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeNotEqualTo(String value) {
            addCriterion("ta_createtime <>", value, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeGreaterThan(String value) {
            addCriterion("ta_createtime >", value, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("ta_createtime >=", value, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeLessThan(String value) {
            addCriterion("ta_createtime <", value, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeLessThanOrEqualTo(String value) {
            addCriterion("ta_createtime <=", value, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeLike(String value) {
            addCriterion("ta_createtime like", value, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeNotLike(String value) {
            addCriterion("ta_createtime not like", value, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeIn(List<String> values) {
            addCriterion("ta_createtime in", values, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeNotIn(List<String> values) {
            addCriterion("ta_createtime not in", values, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeBetween(String value1, String value2) {
            addCriterion("ta_createtime between", value1, value2, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaCreatetimeNotBetween(String value1, String value2) {
            addCriterion("ta_createtime not between", value1, value2, "taCreatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeIsNull() {
            addCriterion("ta_updatetime is null");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeIsNotNull() {
            addCriterion("ta_updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeEqualTo(String value) {
            addCriterion("ta_updatetime =", value, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeNotEqualTo(String value) {
            addCriterion("ta_updatetime <>", value, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeGreaterThan(String value) {
            addCriterion("ta_updatetime >", value, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("ta_updatetime >=", value, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeLessThan(String value) {
            addCriterion("ta_updatetime <", value, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeLessThanOrEqualTo(String value) {
            addCriterion("ta_updatetime <=", value, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeLike(String value) {
            addCriterion("ta_updatetime like", value, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeNotLike(String value) {
            addCriterion("ta_updatetime not like", value, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeIn(List<String> values) {
            addCriterion("ta_updatetime in", values, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeNotIn(List<String> values) {
            addCriterion("ta_updatetime not in", values, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeBetween(String value1, String value2) {
            addCriterion("ta_updatetime between", value1, value2, "taUpdatetime");
            return (Criteria) this;
        }

        public Criteria andTaUpdatetimeNotBetween(String value1, String value2) {
            addCriterion("ta_updatetime not between", value1, value2, "taUpdatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}